package adv411;

/**
 * @author oldliu
 * @since 1.0
 */
public class Cleaner {
    public String name;
    public void doClean(String room){
        System.out.println("打扫房间");
        class Xichengqi{
            private String brand;
            private int watt;

            public Xichengqi(String brand, int watt) {
                this.brand = brand;
                this.watt = watt;
            }
            public void start(){
                System.out.println("功率是"+this.watt+"的"+this.brand+"吸尘器启动了");
                System.out.println("准备清扫房间"+room);
            }
            public String getBrand() {
                return brand;
            }
            public int getWatt() {
                return watt;
            }
        }
        Xichengqi x=new Xichengqi("美的吸尘器",40);
        x.start();
        System.out.println("工人："+name+"使用"+x.getBrand()+"在打扫房间"+room);
    }

    public static void main(String[] args) {
        Cleaner c=new Cleaner();
        c.name="老吴";
        c.doClean("102");
    }
}
